package com.he.DesignPatterns.proxy.StaticProxy;

/**
 * @description: 获取代理对象的工厂类
 * @Author: HCL
 * @Date: 2024/8/26 15:03
 */
public class ProxyPoint implements SellTickets{

//    声明火车站对象
    private TrainStation trainStation = new TrainStation();
    @Override
    public void sell() {
        System.out.println("代售点收取代理费");
        trainStation.sell();
    }
}
